/* ==========================================================
   SHARED PAGE SIDEBAR (sidebar-template.php)
   ========================================================== */

.sb-wrap {
  --sb-navy: #1d2a5b;
  --sb-navy-2: #253993;
  --sb-rose: #ff1f59;
  --sb-ink: #283034;
  --sb-muted: #8a939c;
  --sb-line: #eef0f5;
}

/* ---------- Links card ---------- */
.sb-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -26px rgba(29, 42, 91, .55);
}

.sb-head {
  position: relative;
  overflow: hidden;
  padding: 24px 26px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 31, 89, .4) 0, rgba(255, 31, 89, 0) 55%),
    linear-gradient(135deg, var(--sb-navy) 0%, var(--sb-navy-2) 100%);
}

.sb-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.sb-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.sb-head-icon {
  position: absolute;
  right: -6px;
  bottom: -14px;
  font-size: 5.2rem;
  color: rgba(255, 255, 255, .08);
  transform: rotate(-12deg);
}

.sb-list {
  margin: 0;
  padding: 10px;
  list-style: none;
}

.sb-list li + li {
  margin-top: 2px;
}

.sb-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sb-ink);
  border-radius: 10px;
  transition: background .25s, color .25s, padding .25s;
}

/* accent bar that grows on hover */
.sb-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--sb-rose);
  transform: translateY(-50%);
  transition: height .25s;
}

.sb-label {
  flex: 1 1 auto;
}

.sb-arrow {
  font-size: .7rem;
  color: var(--sb-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s, transform .25s, color .25s;
}

.sb-list a:hover {
  color: var(--sb-navy-2);
  background: #f4f6fc;
  padding-left: 18px;
}

.sb-list a:hover::before {
  height: 60%;
}

.sb-list a:hover .sb-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--sb-rose);
}

/* current page (class added by footer.php script) */
.sb-list a.active-sidebar-link,
.sb-list a.active-sidebar-link:hover {
  padding: 12px 14px;
  font-weight: 700;
  color: #fff !important;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--sb-navy-2), var(--sb-rose));
  box-shadow: 0 10px 22px -12px rgba(255, 31, 89, .7);
}

.sb-list a.active-sidebar-link::before {
  display: none;
}

.sb-list a.active-sidebar-link .sb-arrow {
  opacity: 1;
  transform: none;
  color: #fff;
}

/* ---------- Help card ---------- */
.sb-help {
  position: relative;
  margin-top: 24px;
  padding: 24px 24px 22px;
  border: 1px solid var(--sb-line);
  border-top: 4px solid var(--sb-rose);
  border-radius: 16px;
  background: #fff;
}

.sb-help-title {
  margin-bottom: 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sb-navy);
}

.sb-help-text {
  margin-bottom: 14px;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--sb-muted);
}

.sb-help-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--sb-ink);
  word-break: break-all;
}

.sb-help-line i {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--sb-navy-2);
  border-radius: 8px;
  background: #eef1fb;
  transition: all .25s;
}

.sb-help-line:hover {
  color: var(--sb-rose);
}

.sb-help-line:hover i {
  color: #fff;
  background: var(--sb-rose);
}

.sb-help-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  border-radius: 10px;
  background: var(--sb-navy);
  transition: background .25s;
}

.sb-help-btn:hover {
  color: #fff;
  background: var(--sb-rose);
}

.sb-help-btn i {
  transition: transform .25s;
}

.sb-help-btn:hover i {
  transform: translateX(4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .sb-wrap.mt-40 { margin-top: 30px; }
}
